import request from '@/utils/request/index.js'
var app = getApp();

// 积分商城
export function pointsMall(data) {
	return request.request({
		url: '/api/platform/v1/points/mall',
		data: data,
		method: 'POST',
		authType: 'None'
	})
}

// 积分商品
export function pointsProductList(data) {
	return request.request({
		url: '/api/platform/v1/points/product/list',
		data: data,
		method: 'POST',
		authType: 'None'
	})
}


// 积分明细
export function pointsDetails(data) {
	return request.request({
		url: '/api/platform/v1/points/details',
		data: data,
		method: 'POST',
		authType: 'None'
	})
}

// 商品详情
export function pointsProductInfo(data) {
	return request.request({
		url: '/api/platform/v1/points/product/info',
		data: data,
		method: 'POST',
		authType: 'None'
	})
}



// 商品兑换
export function pointsProductOrder(data) {
	return request.request({
		url: '/api/platform/v1/points/product/order',
		data: data,
		method: 'POST',
		authType: 'None'
	})
}


// 商品兑换
export function pointsProductConvert(data) {
	return request.request({
		url: '/api/platform/v1/points/product/convert',
		data: data,
		method: 'POST',
		authType: 'None'
	})
}


// 新增地址
export function pointsAddressAdd(data) {
	return request.request({
		url: '/api/v1/user/address/add',
		data: data,
		method: 'POST',
		authType: 'None'
	})
}



